cmake_minimum_required(VERSION 3.5.1)

project(x11vnc-autoservice LANGUAGES C VERSION 0.0.1)

include(cmake/SparkInstallMacros.cmake)

# 安装的 prefix
spark_install("/usr")

# 安装服务位置
# ./usr/lib/systemd/user/x11vnc.service
spark_install_file(src/x11vnc.service
    /usr/lib/systemd/user)

# 安装desktop图标位置
# ./usr/share/applications/x11vnc-service.desktop
spark_install_file(src/x11vnc-service.desktop
    share/applications/)

include(cmake/DebPackageConfig.cmake)
add_package_descript(cmake/package-deb.descript)
